import { applicationSetting } from "@/settings/application-settings"

export interface AppStoreType {
    // 系统名称
    name: string

    // 左上角LOGO
    logo: string
    // 左上角标题
    title: string
    // 登录页LOGO
    loginLogo: string
    // 登录页描述，在LOGO下方的一行小字
    loginDesc: string
}

/**
 * 系统样式
 */
export const useAppStore = defineStore("app", () => {
    const setting = shallowRef<AppStoreType>()

    const setup = () => {
        setting.value = Object.assign({}, applicationSetting)
    }

    return { setting, setup }
})
